package com.jinke.api.modules.api.error;


/**
 * 用户模块错误信息  共6位，01模块，中间两位功能（00表示通用），后两位表示错误顺序号
 *
 * @author: vinfant
 * @time: 2023/4/20 15:40
 */
public enum ApiError {

    //Authorization与用户不匹配
    AUTHORIZATION_FAILED(99999, "Authorization failed!"),
    //Authorization值为空
    AUTHORIZATION_EMPTY(99999, "Authorization value empty!"),

    SYSTEM_ERROR(999999, "系统错误");


    private Integer code;
    private String msg;

    private ApiError(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }


}
